﻿namespace KeRui.TemplateMaker
{
    using System;

    public class NodeAttribute
    {
        private int _contentyype;
        private string _direction;
        private bool _ishot;
        private bool _isincludechild;
        private bool _ismarked;
        private bool _isrecommend;
        private bool _istop;
        private int _nodeid;
        private string _orderby;

        public NodeAttribute()
        {
        }

        public NodeAttribute(int nodeID, bool isHot, bool isMarked, bool isTop, bool isRecommend, bool isIncludeChild, int contentType, string orderBy, string direction)
        {
            this.NodeID = nodeID;
            this.IsHot = isHot;
            this.IsMarked = isMarked;
            this.IsTop = isTop;
            this.IsRecommend = isRecommend;
            this.IsIncludeChild = isIncludeChild;
            this.ContentType = contentType;
            this.OrderBy = orderBy;
            this.Direction = direction;
        }

        public int ContentType
        {
            get
            {
                return this._contentyype;
            }
            set
            {
                this._contentyype = value;
            }
        }

        public string Direction
        {
            get
            {
                return this._direction;
            }
            set
            {
                this._direction = value;
            }
        }

        public bool IsHot
        {
            get
            {
                return this._ishot;
            }
            set
            {
                this._ishot = value;
            }
        }

        public bool IsIncludeChild
        {
            get
            {
                return this._isincludechild;
            }
            set
            {
                this._isincludechild = value;
            }
        }

        public bool IsMarked
        {
            get
            {
                return this._ismarked;
            }
            set
            {
                this._ismarked = value;
            }
        }

        public bool IsRecommend
        {
            get
            {
                return this._isrecommend;
            }
            set
            {
                this._isrecommend = value;
            }
        }

        public bool IsTop
        {
            get
            {
                return this._istop;
            }
            set
            {
                this._istop = value;
            }
        }

        public int NodeID
        {
            get
            {
                return this._nodeid;
            }
            set
            {
                this._nodeid = value;
            }
        }

        public string OrderBy
        {
            get
            {
                return this._orderby;
            }
            set
            {
                this._orderby = value;
            }
        }
    }
}

